home *** CD-ROM | disk | FTP | other *** search
-
- (*
- ** PCX unit
- ** Supports:
- ** ■ Fast load routine for 64Kb files only
- ** ■ Save routine
- ** ■ General display routine
- **
- ** Made by Bas van Gaalen
- *)
-
- unit u_ffpcx;
-
- interface
-
- uses dos,graph,u_pal;
-
- const
- pcx_ok=0;
- pcx_nofile=1;
- pcx_invalid=2;
- pcx_nomem=3;
- pcx_nocreate=4;
- pcx_errfile=5;
-
- type
- pcx_inforec=record
- xres,yres:word;
- pixs:byte;
- end;
-
- var
- pcx_status:byte;
-
- function pcx_errstr:string;
- function pcx_load(fname:pathstr; var pic:pointer; var pal:pal_type):byte;
- function pcx_save(fname:pathstr; pic:pointer; pal:pal_type):byte; { 320x200 }
- function pcx_display(fname,bgipath:pathstr; vidmode:shortint):byte;
- function pcx_info(fname:pathstr; var info:pcx_inforec):byte;
-
- implementation
-
-